
**Compare mean
ttest error, by(government) unequal
ttest error, by(new) unequal

ttest accuracy, by(government) unequal
ttest accuracy, by(new) unequal

**Relevance of ctrls (abs= abs(delta; square=delta^2)
reg abs sample time turnout contemporaneous compulsory, cluster (wavenum)
reg square sample time turnout contemporaneous compulsory, cluster (wavenum)


outreg2 using table2.doc, dec(3)
outreg2 append table2.doc

*Tutto con government new size euroscepticism

***LOGIT
logit errorpos sample time cycle turnout contemporaneous compulsory government, cluster(wave)
logit errorpos sample time cycle turnout contemporaneous compulsory size, cluster(wave)
logit errorpos sample time cycle turnout contemporaneous compulsory new, cluster(wave)
logit errorpos sample time cycle turnout contemporaneous compulsory euroscepticism, cluster(wave)

logit biaspos sample time cycle turnout contemporaneous compulsory government, cluster(wave)
logit biaspos sample time cycle turnout contemporaneous compulsory size, cluster(wave)
logit biaspos sample time cycle turnout contemporaneous compulsory new, cluster(wave)
logit biaspos sample time cycle turnout contemporaneous compulsory euroscepticism, cluster(wave)

logit biasneg sample time cycle turnout contemporaneous compulsory government, cluster(wave)
logit biasneg sample time cycle turnout contemporaneous compulsory size, cluster(wave)
logit biasneg sample time cycle turnout contemporaneous compulsory new, cluster(wave)
logit biasneg sample time cycle turnout contemporaneous compulsory euroscepticism, cluster(wave)


***REG
reg error sample time cycle turnout contemporaneous compulsory government, cluster(wave)
reg error sample time cycle turnout contemporaneous compulsory size, cluster(wave)
reg error sample time cycle turnout contemporaneous compulsory new, cluster(wave)
reg error sample time cycle turnout contemporaneous compulsory euroscepticism, cluster(wave)

reg accuracy sample time cycle turnout contemporaneous compulsory government, cluster(wave)
reg accuracy sample time cycle turnout contemporaneous compulsory size, cluster(wave)
reg accuracy sample time cycle turnout contemporaneous compulsory new, cluster(wave)
reg accuracy sample time cycle turnout contemporaneous compulsory euroscepticism, cluster(wave)


**MLOGIT
mlogit biassign sample time cycle turnout contemporaneous compulsory euroscepticism, cluster(wave)


***Interaction government-cycle
reg error sample time turnout contemporaneous compulsory c.government##c.cycle##c.cycle, cluster (wavenum)
margins, dydx(government) at(cycle =(4(1)92)) vsquish
marginsplot, recast (line) recastci(rline) ciopts(lpattern(dash)) yline(0, lcolor(red)) legend(off) title("Marginal effects of being incumbent", size(medium))

reg accuracy sample time turnout contemporaneous compulsory c.government##c.cycle##c.cycle, cluster (wavenum)
margins, dydx(government) at(cycle =(4(1)92)) vsquish
marginsplot, recast (line) recastci(rline) ciopts(lpattern(dash)) yline(0, lcolor(red)) legend(off) title("Marginal effects of being incumbent", size(medium))

